<html>
<head><meta charset="utf-8"><title>Allocation tags for statics · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html">Allocation tags for statics</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="185224052"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185224052" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Christian Poveda <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185224052">(Jan 09 2020 at 15:48)</a>:</h4>
<p>whats the reason behind having <code>Machine::find_foreign_static</code> return an Allocation without tag and extra? I read the docs <a href="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/trait.Machine.html#tymethod.find_foreign_static" target="_blank" title="https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/trait.Machine.html#tymethod.find_foreign_static">https://doc.rust-lang.org/nightly/nightly-rustc/rustc_mir/interpret/trait.Machine.html#tymethod.find_foreign_static</a> but I cannot find <code>tag_allocation</code></p>



<a name="185224325"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185224325" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185224325">(Jan 09 2020 at 15:50)</a>:</h4>
<p>probably just similarity to how other statics are set up</p>



<a name="185224345"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185224345" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185224345">(Jan 09 2020 at 15:50)</a>:</h4>
<p>but yea, technically this one doesn't need that, but maybe the callers to it need it?</p>



<a name="185224418"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185224418" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Christian Poveda <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185224418">(Jan 09 2020 at 15:51)</a>:</h4>
<p>I'm trying to fix the <code>environ</code> problem (maybe you remember it)</p>



<a name="185224477"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185224477" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Christian Poveda <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185224477">(Jan 09 2020 at 15:51)</a>:</h4>
<p>And I have been unable to build a static without tag nor extra</p>



<a name="185224682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185224682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185224682">(Jan 09 2020 at 15:53)</a>:</h4>
<p>well, you can check if all callers can be adjusted to handle fully machine-ready allocations</p>



<a name="185245674"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185245674" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Christian Poveda <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185245674">(Jan 09 2020 at 19:21)</a>:</h4>
<p>mmm I ended up getting a stacked borrows related error again</p>



<a name="185245693"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Allocation%20tags%20for%20statics/near/185245693" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Christian Poveda <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Allocation.20tags.20for.20statics.html#185245693">(Jan 09 2020 at 19:21)</a>:</h4>
<p>I think it might be easier to erase the tag and extra</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>